package com.bit.demo.springioc.controller;

import com.bit.demo.springioc.model.DbType;
import com.bit.demo.springioc.model.PersonInfo;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class YmlController {
    @Autowired
    private PersonInfo personInfo;
    @Autowired
    private DbType dbType;
    @PostConstruct
    public void init(){
        System.out.println(personInfo);
        System.out.println(dbType);
    }
}
